package com.jiexinyun.controller.android;

import com.jiexinyun.dto.request.androiddict.AndroidGgReq;
import com.jiexinyun.dto.response.AjaxResult;
import com.jiexinyun.service.android.PublicWorkDictService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.validation.Valid;

@Slf4j
@RestController
@RequestMapping("/public/work/dict")
@Tag(name = "安卓工作机数据字典", description = "安卓工作机数据字典")
@Valid
public class PublicWorkDictController {

    @Autowired
    private PublicWorkDictService service;

    @PostMapping("/gg")
    @Operation(summary = "查询规格", description = "查询规格")
    public AjaxResult gg(@Valid @RequestBody AndroidGgReq req) {

        return service.gg(req);
    }

    @PostMapping("/wlCz")
    @Operation(summary = "查询物料材质", description = "查询物料材质")
    public AjaxResult wlCz() {

        return service.wlCz();
    }

    @PostMapping("/wlBz")
    @Operation(summary = "查询标准", description = "查询标准")
    public AjaxResult wlBz() {

        return service.wlBz();
    }

    @PostMapping("/wlDj")
    @Operation(summary = "查询等级", description = "查询等级")
    public AjaxResult wlDj() {

        return service.wlDj();
    }

    @PostMapping("/wlBmcl")
    @Operation(summary = "查询表面处理", description = "查询表面处理")
    public AjaxResult wlBmcl() {

        return service.wlBmcl();
    }

    @PostMapping("/jldw")
    @Operation(summary = "查询计量单位", description = "查询计量单位")
    public AjaxResult jldw() {

        return service.jldw();
    }

}
